#import "RNLayoutPopUpButton.h"
#import "RNLayoutHelper.h"

@implementation RNLayoutPopUpButton

@synthesize layoutHelper = layoutHelper_;

- (id)initWithFrame:(NSRect)frameRect pullsDown:(BOOL)flag {
    if (!(self = [super initWithFrame:frameRect pullsDown:flag]))
        return nil;
    
    [self setLayoutHelper:[[RNLayoutHelper alloc] initWithView:self]];
    return self;
}

-(NSView<RNLayoutView> *)parent {
    if ([[self superview] conformsToProtocol:@protocol(RNLayoutView)])
        return (NSView<RNLayoutView> *)[self superview];
    return nil;
}

-(NSArray *)children {
    return nil;
}

@end
